#ifndef NV_CONFIG_H
#define NV_CONFIG_H

#include "nvclib.h"
#define MAX_LINE_NUM 2048

struct nv_port_config
{
	struct port_config config;
	struct nv_port_config * next;
};
struct nv_link_config
{
	struct link_config config;
	struct nv_link_config * next;
};
struct nv_conn_config
{
	char name[8];
	char ip[16];
	unsigned short port;
	struct nv_conn_config * next;
};
int read_port_config(FILE * filp, struct nv_port_config ** config);
int read_link_config(FILE * filp, struct nv_link_config ** config);
int read_conn_config(FILE * filp, struct nv_conn_config ** config);
void release_port_config(struct nv_port_config * config);
void release_link_config(struct nv_link_config * config);
void release_conn_config(struct nv_conn_config * config);
int get_int_from_string(char * string, int * conf, int size, char * d);
#endif